package com.ml.springboot.mapper;

import com.ml.springboot.pojo.Employee;
import com.ml.springboot.pojo.query.EmployeeQuery;
import org.apache.ibatis.annotations.Mapper;

import java.util.List;

@Mapper
public interface EmployeeMapper {
    List<Employee> list(EmployeeQuery employeeQuery);

    void deleteById(Integer id);

    void add(Employee employee);

    Employee selectById(Integer id);

    void update(Employee employee);

    Employee login(String name, String password);

    void updateStatus(Integer id, Integer status);

    List<Employee> selectAll();

    List<Employee> selectsuoyou();
}
